package com.yuesystem.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import lombok.Data;



/**
 * 评论类.
 */
@Data
public class Comment {
  //评论id
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;
  
  // 帖子id
  private Long blogId;
  
  // 评论人id
  private Long userId;
  
  // 评论内容
  private String content;
  
  // 评论时间
  @TableField(fill = FieldFill.INSERT)
  private LocalDateTime createTime;
  
}
